<template>
	<!-- 我的联系方式 -->
	<view class="content">
		<view class="form">
			<view class="input">
				<span>手机号</span>
				<input type="number" placeholder="请输入手机号" maxlength="11"
				placeholder-style="font-size: 14px;font-weight: 400;color: #505E5C;">
			</view>
			<view class="isPublic">
				<span>公开给招聘者</span>
				<uSwitch v-model="phonePublic" @change="phonePublicChange"
				size="12" activeColor="#08C8BD"></uSwitch>
			</view>
		</view>
		<view class="form">
			<view class="input">
				<span>微信号</span>
				<input type="number" placeholder="请输入微信号" maxlength="21"
				placeholder-style="font-size: 14px;font-weight: 400;color: #505E5C;">
			</view>
			<view class="isPublic">
				<span>公开给招聘者</span>
				<uSwitch v-model="wechatPublic" @change="weihatPublicChange"
				size="12" activeColor="#08C8BD"></uSwitch>
			</view>
		</view>
		<view class="form">
			<view class="input">
				<span>手机号</span>
				<input type="number" placeholder="请输入手机号" maxlength="11"
				placeholder-style="font-size: 14px;font-weight: 400;color: #505E5C;">
			</view>
			<view class="isPublic">
				<span>公开给招聘者</span>
				<uSwitch v-model="QQPublic" @change="QQPublicChange"
				size="12" activeColor="#08C8BD"></uSwitch>
			</view>
		</view>
		
		<button id="button">保存</button>
	</view>
</template>

<script>
	import uSwitch from '@/subpageA/uview-ui/components/u-switch/u-switch.vue'
	
	export default {
		data() {
			return {
				phonePublic:false,			//手机号是否公开
				wechatPublic:false,			//微信号是否公开
				QQPublic:false,				//QQ是否公开
			}
		},
		components:{
			uSwitch
		},
		methods: {
			phonePublicChange(e){
				console.log(e);
			},
			weihatPublicChange(e){
				console.log(e);
			},
			QQPublicChange(e){
				console.log(e);
			}
		}
	}
</script>

<style scoped lang="scss">
	.content{
		width: 100%;
		min-height: 100vh;
		background-color: #F3F7F8;
		
		.form{
			background-color: #FFFFFF;
			padding: 32rpx;
			.input{
				display: flex;
				justify-content: space-between;
				align-items: center;
				>span{
					font-size: 32rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #001A18;
				}
				>input{
					text-align: right;
				}
			}
			
			.isPublic{
				margin-top: 20rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				>span{
					font-size: 28rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #505E5C;
				}
			}
		}
		
		>button{
			display: flex;
			justify-content: center;
			align-items: center;
			width: 686rpx;
			height: 96rpx;
			margin: 32rpx;
			margin-top: 96rpx;
			background: #08C8BD;
			color: #FFFFFF;
			border-radius: 16rpx;
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
		}
		
	}
</style>
